﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using iLangl.Model;
using iLangl.BusinessModel.Managers;
using iLangl.Tests.CustomerActions;

namespace iLangl.Tests.DALFixture
{
	[TestClass]
	public class ProjectDALFixture : ProjectValidationTest
	{
		[TestMethod]
		public void ProjectDAL()
		{
			Project project = ProjectManager.Instance.GetProject(TestSettings.DefaultProjectId);
			Project projectorigin = GetProject();
			ProjectRequestContext requestContext = new ProjectRequestContext();
			requestContext.SetContext(project);
			string sproject = requestContext.GetContext().ToString();

			requestContext.SetContext(projectorigin);
			string sprojectorigin = requestContext.GetContext().ToString();
			Assert.AreEqual(sproject, sprojectorigin);
		}
	}
}
